package com.sky.web.fegin.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.sky.web.fegin.service.CustomerFeginService;
import com.sky.web.other.entity.Customer;

/**
 * 跨服务访问降级服务
 * @author TQ
 *
 */
@Component
public class CustomerFeginServiceCallback implements CustomerFeginService{
	@Override
	public List<Customer> getCustomer(Customer customer) {
		Customer c = new Customer();
		c.setCustomerName("fegin服务请求失败");
		List<Customer> list = new ArrayList<Customer>();
		list.add(c);
		list.add(customer);
		return list;
	}

	@Override
	public String getString(String desc) {
		return "fegin服务请求失败";
	}

	@Override
	public String getString(String str1, String str2) {
		return "fegin服务请求失败2";
	}

}
